package com.lzp.user.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;


public enum UserSex {
    MAN(1, "男"),
    WOMAN(0, "女");

    @EnumValue
    private Integer code;
    @JsonValue
    private String desc;

    UserSex(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
